<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

	<body>
		<form action="comment.do" method="post">
		<fieldset>
			<legend>comment</legend>
			title:<input type="text" name="title" value="${commentForm.title}"/><br/>
			content:<input type="text" name="content" value="${commentForm.content}"/><br>
			gender:male:<input type="radio" name="gender" value="m" <c:if test="${commentForm.gender == 'm'}">checked="checked"</c:if>/>
			female:<input type="radio" name="gender" value="f" <c:if test="${commentForm.gender == 'f'}">checked="checked"</c:if>/><br>
			validateCode:<img id="validateCode" src="ValidateCodeServlet" />
			<input type="text" name="validateCode">${validateCodeErr}<br/>
									<a href="javascript:;"
										onclick="document.getElementById('validateCode').src = 'ValidateCodeServlet?'+(new Date()).getTime()">换一张</a><br/>
			<input type="submit" value="confirm">
		</fieldset>
		</form>
	</body>
</html>
